<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core">


    <body>
        <ui:composition>
            <p><h:outputText value="#{bundle.MainHello}"/>
                <br/>
                <h:outputText value="#{sessionBean.login}"/>
            </p>
            <ul id="navigationList">
                <c:choose>
                    <c:when test="#{select == 1}">
                        <li class="navigationLi"> <h:outputText styleClass="selected" value="#{bundle.Home}" /> </li>
                    </c:when>
                    <c:otherwise>
                        <li class="navigationLi"> <h:link outcome="main" value="#{bundle.Home}"/> </li>
                    </c:otherwise>
                </c:choose>
                <c:choose>
                    <c:when test="#{select == 3}">
                        <li class="navigationLi"> <h:outputText styleClass="selected" value="#{bundle.AAddUser}" /> </li>
                    </c:when>
                    <c:otherwise>
                        <li class="navigationLi"> <h:link outcome="addUser" value="#{bundle.AAddUser}"/> </li>
                    </c:otherwise>
                </c:choose>
                <c:choose>
                    <c:when test="#{select == 2}">
                        <li class="navigationLi"> <h:outputText styleClass="selected" value="#{bundle.AUsers}" /> </li>
                    </c:when>
                    <c:otherwise>
                        <li class="navigationLi"> <h:link outcome="users" value="#{bundle.AUsers}"/> </li>
                    </c:otherwise>
                </c:choose>
                

            </ul>
            <h:form>
                <h:commandButton styleClass="logout" value="Log out" action="#{sessionBean.logout}"/>
            </h:form>
        </ui:composition>

    </body>
</html>
